package com.qsn.order.controller;


import com.github.xiaoymin.knife4j.annotations.ApiSort;
import com.qsn.order.client.UserClient;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 订单表
 *
 * @author qiusn
 * @date 2021-03-05
 */
@Slf4j
@RestController
@ApiSort(1)
@Api(tags = "订单管理", value = "UserController")
@RequestMapping("/order")
public class OrderController {

    @Resource
    private UserClient userClient;


    /**
     * 列表
     *
     * @return 列表信息
     */
    @ApiOperation(value = "列表", notes = "备注信息", position = 1)
    @GetMapping("/user-list")
    public String listOrder() {
        String res = userClient.service();
        return "order -> user, res: " + res;
    }
}
